<?php 
/** @var GroupsRow */
$groupRow = $this->group;

$turnCreateUrl = $this->url(array('action' => 'turn', 'id' => $groupRow->getId()));
?>

<div class="head">
	<?php echo $groupRow->getName(); ?>
</div>
<div class="cont_body" style="padding: 10px">
		<?php echo $this->partial('group-container.phtml', array('group' => $groupRow)); ?>
		
		<a href='<?php echo $turnCreateUrl; ?>'>Создать очередь</a>
		<div class='clear'></div>
		
		<h3>Список очередей:</h3>
		<?php 
		foreach ($this->turns as $turnRow) {
			echo $this->partial('turn-container.phtml', array('turn' => $turnRow)); 
		}
		?>
		
	<div class="clear"></div>
</div>
